﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string username = Request.QueryString["username"];
            string password = Request.QueryString["password"];

            if (username != null && password != null)
            {
            Response.Write($"<h1>欢迎你，{username}，你的密码是{password}。</h1>");
            }

            string username1 = Request.Form["TextBox1"];
            string password1 = Request.Form["TextBox2"];
            
            if (username1 != null && password1 != null)
            {
            Response.Write($"<h1>欢迎你，{username1}，你的密码是{password1}。</h1>");
            }
        }
    }
}